package com.csxy.six.service;

import com.csxy.six.R2;
import com.csxy.six.entity.User;

import java.util.List;
import java.util.Map;

public interface UserService {
    R2<List<User>> listUsers(String username, String nickname, Integer status);
    R2<User> getUserById(Long id);
    R2<User> createUser(User user);
    R2<User> updateUser(Long id, User user);
    R2<Void> deleteUser(Long id);
    R2<Void> updateUserStatus(Long id, Integer status);
    void updateAvatar(Long userId, String avatarUrl);
    R2<Void> changePassword(String oldPassword, String newPassword);

    // 添加这两个方法
    R2<User> getCurrentUserProfile();
    R2<User> updateCurrentUserProfile(User user);
}